package org.kth.dks.dks_marshal;

/**
 * <p>Title: DKS</p>
 * <p>Description: DKS Middleware</p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: KTH-IMIT</p>
 * @author not attributable
 * @version 1.0
 */

import java.io.IOException;

import org.apache.log4j.Logger;
import org.kth.dks.dks_comm.DKSRef;

public class FailureMsg extends DKSMessage { // shouldnt be public!
	private final Logger log = Logger.getLogger(FailureMsg.class);
	private static String NAME= "FAILUREMSG";
	private final DKSRef src;
	private final DKSRef dest;
	private final DKSMessage msg;
	
	public String getName() { return NAME; }
	public DKSRef getDest() { return dest; }
	public DKSRef getSrc() { return src; }
	public DKSMessage getMsg() { return msg; }
	
	public FailureMsg(DKSRef s, DKSRef d, DKSMessage m) {
		src=s;
		dest=d;
		msg=m;
	}
	
	public void marshal() throws IOException {
		log.error("This message does not support marshaling/unmarshaling");
	}
	
	public void unmarshal() throws IOException {
		log.error("This message does not support marshaling/unmarshaling");
	}
}
